package com.travel.server;

import com.travel.common.base.CorsFilterBean;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.XADataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @Author: LiZhenhui
 * @Date: 2018/10/16 14:43
 * @Desc:
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableAutoConfiguration(exclude = {DataSourceAutoConfiguration.class, XADataSourceAutoConfiguration.class})
@ComponentScan(basePackages = {
        "com.travel.server.manager.dao",
        "com.travel.server.manager.impl"})
@EnableScheduling
public class ManagerApplication extends CorsFilterBean {

    public static void main(String[] args){
        SpringApplication.run(ManagerApplication.class, args);
    }
}
